package com.bookyourtrek.action;

import java.util.ArrayList;

import com.bookyourtrek.model.SearchAdventureModel;
import com.bookyourtrek.model.SearchListPojo;
import com.opensymphony.xwork2.ActionSupport;

public class ManageTrekAction extends ActionSupport{

	/**
	 * 
	 */
	private ArrayList<SearchListPojo> searchlist = new ArrayList<SearchListPojo>();
	
	private static final long serialVersionUID = 1L;
	
	public String pendingtreks() {
		//get all pending treks
		SearchAdventureModel sam = new SearchAdventureModel();
		searchlist = (sam.getpendingtreks());
		
		return SUCCESS;
	}
	
	public String approvedtreks() {
		return SUCCESS;
	}
	
	public String canceledtreks() {
		return SUCCESS;
	}

	public ArrayList<SearchListPojo> getSearchlist() {
		return searchlist;
	}

	public void setSearchlist(ArrayList<SearchListPojo> searchlist) {
		this.searchlist = searchlist;
	}

}
